package net.ericaro.neojavagen.expressions;

/**
 * <b>AdditiveExpressionRest</b> ::= <{@link net .ericaro .neojavagen .expressions .PlusAdditiveExpression PlusAdditiveExpression}> <
 * {@link net .ericaro .neojavagen .expressions .MinusAdditiveExpression MinusAdditiveExpression}>
 * 
 * @author eric@ericaro.net
 */
public class AdditiveExpressionRest extends net.ericaro.neojavagen.JavaPartComposition {
	private net.ericaro.neojavagen.expressions.MinusAdditiveExpression minusAdditiveExpression;

	private net.ericaro.neojavagen.expressions.PlusAdditiveExpression plusAdditiveExpression;

	public AdditiveExpressionRest(net.ericaro.neojavagen.expressions.PlusAdditiveExpression plusAdditiveExpression, net.ericaro.neojavagen.expressions.MinusAdditiveExpression minusAdditiveExpression) {
		super();
		this.plusAdditiveExpression = plusAdditiveExpression;
		this.minusAdditiveExpression = minusAdditiveExpression;
	}

	public net.ericaro.neojavagen.expressions.MinusAdditiveExpression getMinusAdditiveExpression() {
		return minusAdditiveExpression;
	}

	public net.ericaro.neojavagen.expressions.PlusAdditiveExpression getPlusAdditiveExpression() {
		return plusAdditiveExpression;
	}

	public void setMinusAdditiveExpression(net.ericaro.neojavagen.expressions.MinusAdditiveExpression minusAdditiveExpression) {
		this.minusAdditiveExpression = minusAdditiveExpression;
	}

	public void setPlusAdditiveExpression(net.ericaro.neojavagen.expressions.PlusAdditiveExpression plusAdditiveExpression) {
		this.plusAdditiveExpression = plusAdditiveExpression;
	}

	@Override
	public java.lang.String toString() {
		return print(plusAdditiveExpression, minusAdditiveExpression);
	}
}
